indexOf

(alias) pure function indexOf(text: text): integer

Deprecated

Use 'index_of' instead

Returns the position of the first occurrence of the specified substring within this text, or -1 if the text is not found.

Alias

Alias target

Since

0.9.0

Parameters

text

The substring to search for.


(alias) pure function indexOf(text: text, start: integer): integer

Deprecated

Use 'index_of' instead

Returns the position of the first occurrence of the specified substring within this text, starting at the specified index, or -1 if the text is not found.

Alias

Alias target

Since

0.9.0

Parameters

text

The substring to search for.

start

The index to start the search from.